package com.weds.edpf.core.entity;

import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;

public class TtSexEntity extends BaseEntity implements Serializable {
    /**
     *
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    @Size(max = 20)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String ttName;

    /**
     *
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private Short ttOrder;

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    private static final long serialVersionUID = 1L;

    private String keys;

    /**
     * This method returns the value of the database column tt_sex.tt_name
     *
     * @return the value of tt_sex.tt_name
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public String getTtName() {
        return ttName;
    }

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public TtSexEntity withTtName(String ttName) {
        this.setTtName(ttName);
        return this;
    }

    /**
     * This method sets the value of the database column tt_sex.tt_name
     *
     * @param ttName the value for tt_sex.tt_name
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public void setTtName(String ttName) {
        this.ttName = ttName;
    }

    /**
     * This method returns the value of the database column tt_sex.tt_order
     *
     * @return the value of tt_sex.tt_order
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public Short getTtOrder() {
        return ttOrder;
    }

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public TtSexEntity withTtOrder(Short ttOrder) {
        this.setTtOrder(ttOrder);
        return this;
    }

    /**
     * This method sets the value of the database column tt_sex.tt_order
     *
     * @param ttOrder the value for tt_sex.tt_order
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    public void setTtOrder(Short ttOrder) {
        this.ttOrder = ttOrder;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ttName=").append(ttName);
        sb.append(", ttOrder=").append(ttOrder);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", keys=").append(keys);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TtSexEntity other = (TtSexEntity) that;
        return (this.getTtName() == null ? other.getTtName() == null : this.getTtName().equals(other.getTtName()))
            && (this.getTtOrder() == null ? other.getTtOrder() == null : this.getTtOrder().equals(other.getTtOrder()));
    }

    /**
     *
     * @mbg.generated Tue Jun 02 12:58:11 CST 2020
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTtName() == null) ? 0 : getTtName().hashCode());
        result = prime * result + ((getTtOrder() == null) ? 0 : getTtOrder().hashCode());
        return result;
    }
}